<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片文字翻译工具</title>
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>图片文字翻译工具</h1>
            <p>选择图片，自动翻译其中的文字为中文</p>
        </div>

        <div class="upload-section">
            <input type="file" id="fileInput" multiple accept="image/*" style="display: none;">
            <div class="file-input" onclick="document.getElementById('fileInput').click()">
                点击选择图片文件（支持多选）
            </div>
            <div class="buttons">
                <button class="btn btn-primary" id="translateBtn" onclick="startTranslation()" disabled>
                    开始翻译
                </button>
                <button class="btn btn-primary" id="exportBtn" onclick="exportResults()" disabled style="background: #28a745;">
                    导出HTML
                </button>
                <button class="btn btn-danger" onclick="clearAll()">
                    清空所有
                </button>
            </div>
        </div>

        <div class="content-area">
            <div class="panel">
                <div class="panel-title">图片列表</div>
                <div class="image-list" id="imageList">
                    <div class="empty-placeholder">请选择图片文件</div>
                </div>
            </div>

            <div class="panel">
                <div class="panel-title">翻译结果</div>
                <div class="result-list" id="resultList">
                    <div class="empty-placeholder">翻译结果将在这里显示</div>
                </div>
            </div>
        </div>
    </div>

    <script src="js/script.js"></script>
</body>
</html>
